import HttpHandler from "@/handler/HttpHandler";

export default class {

  constructor() {
    this.http = new HttpHandler();
  }

  //设备分组 分页列表
  queryListPage(data) {
    let url = '/tie-demo/equipmentCategory/queryListPage';
    return this.http.get(url, data);
  }

  //详情
  detail(data) {
    let url = '/tie-demo/equipmentCategory/queryDetail';
    return this.http.get(url, data);
  }

  //获取类别
  queryGroupTree(data){
    let url='/tie-demo/equipment/queryGroupTree';
    return this.http.get(url,data)
  }

  //编辑
  update(data){
    let url = '/tie-demo/equipmentCategory/update';
    return this.http.post(url, data);
  }

  //删除
  delete(data){
    let url='/tie-demo/equipmentCategory/delete';
    return this.http.get(url,data)
  }

  //新增
  add(data){
    let url = '/tie-demo/equipmentCategory/add';
    return this.http.post(url, data);
  }
}
